import request from '@/utils/request'

// 获取司机分页数据
export const getDriverList = (params) => {
  return request({
    method: 'get',
    url: '/driver/page',
    params
  })
}
// 获取司机基本信息详情
export const getDriverListInfo = (id) => {
  return request({
    method: 'get',
    url: `/driver/${id}`

  })
}
// 获取司机驾驶证
export const getDriverLicense = (id) => {
  return request({
    method: 'get',
    url: `/driverLicense/${id}`

  })
}
// 获取配置车辆详情
export const getDriverListInfoTwo = (params) => {
  return request({
    method: 'get',
    url: '/unWorkingTrucks',
    params
  })
}
// 获取车辆详情
export const getcarInfo = (id) => {
  return request({
    method: 'get',
    url: `/truck/${id}`
  })
}
// 获取行驶证信息
export const getBindCart = (id) => {
  return request({
    method: 'get',
    url: `/truck/${id}/license`

  })
}
